class CreateCategories < ActiveRecord::Migration
  def change
    create_table "categories", :force => true do |t|
      t.string  "kind", :null => false
      t.string   "name" , :null => false
      t.integer  "parent_id"
      t.integer  "lft"
      t.integer  "rgt"
      t.integer  "depth"
      t.integer  "videos_count", :default => 0
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    add_index "categories", "parent_id"
    add_index "categories", "kind"

  end
end
